<div class="google-object">

    <div class="object-box">

        <div class="review_float">

            <? if($hotel->avg_reviews_score != 0): ?>

                    <div class="big_review_score"> 

                        <?= lang((string)number_format($hotel->avg_reviews_score,1)) ?>,  <?= (string)number_format($hotel->avg_reviews_score,1); ?>

                    </div>

                    <span class="score_from_number_of_reviews"><?=lang('hotell.score_from')?> <strong class="count"><?= $hotel->total_reviews ?></strong> <?=lang('hotell.reviews')?><? if($hotel->total_reviews > 1 && $this->lang->lang() == 'en') echo 's' ?></span>

                <? endif; ?>

        </div>
        <!-- ADDED DURING CURRENCY UPGRADE -->
        <?if(isset($session['change_currency']))
        {
            //$this->firephp->log("GOOGLE_OBJECT_CURRENCY_SET");

            $link_dest=base_url('popular?dest_hot='.strtolower($hotel->destination_name) . '&change_currency=1&currency=' . $session['currency'] );
            $link_hotel=base_url('details_preview?hotel_id='.$hotel->object_ID . '&change_currency=1&currency=' . $session['currency'] );
        }
        else
        {
            //$this->firephp->log("GOOGLE_OBJECT_CURRENCY_NOT_SET");

            $link_dest=base_url('popular?dest_hot='.strtolower($hotel->destination_name));
            $link_hotel=base_url('details_preview?hotel_id='.$hotel->object_ID);
        }
        ?>
            <!-- END ADDED -->
        <div class="image">

            <a href="<?= $link_hotel ?>">

                <? $thumbnail=HOST_URL.'gallery/'.$hotel->photo_path.'/thumb_88x88/'.$hotel->photo_name; ?>

                <img src="<?= $thumbnail ?>" alt="<?= $hotel->object_name; ?>" />

            </a>

        </div>

        <div class="left" >

            <div class="text" style="width:303px">

                <div class="title clearfix"><a href="<?= $link_hotel ?>"><?
                $str=clean_html($hotel->object_name);

                $lng=43;

                if(mb_strlen($str) > $lng)
                {
                    $str=mb_substr($str, 0, $lng).'...';
                }
                echo $str;
                ?></a>

                    <? if($hotel->object_number_of_stars != ""): ?>
                            <div class="star-5-medium star-<?= $hotel->object_number_of_stars ?>"></div>
                        <? endif; ?>

                </div>
                <div class="subtitle"><?= $hotel->object_address ?></div>


            </div>

            <div class="rooms clearfix">

                <?
                    if(isset($hotel->rooms) && count($hotel->rooms) > 0) :
                        foreach($hotel->rooms as $room):
                            ?>

                            <div class="col clearfix">
                                <div class=" tooltip max_ps ps_<?= $room->room_max_person ?>" title=" <?echo(lang('go.max_persons').": ".$room->room_max_person) ?>"></div>
                                <div class="price"><?= $room->selling_total ?><?=$session['currency_sign']?></div>
                            </div>

                            <?
                        endforeach;
                    endif;
                ?>

            </div>

        </div>

    </div>

</div>